package com.rzjm.exercise.common.base.controller;

import com.rzjm.exercise.common.utils.ShiroUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import com.rzjm.exercise.sys.system.user.domain.UserDO;

@Controller
public abstract class BaseController {
	protected Logger logger= LoggerFactory.getLogger(getClass());
	
	public UserDO getUser() {
		return ShiroUtils.getUser();
	}

	public Integer getUserId() {
		return getUser().getUserId();
	}

	public String getUsername() {
		return getUser().getUsername();
	}
}